
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>目录规范 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="../../" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="listRule.html">
            
                <a href="listRule.html">
            
                    
                    目录规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    书写规范
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="pug/pugRules.html">
            
                <a href="pug/pugRules.html">
            
                    
                    pug规范
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="pug/pugMixinRules.html">
            
                <a href="pug/pugMixinRules.html">
            
                    
                    pug-Mixin定义
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" >
            
                <span>
            
                    
                    css规范
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="css/publicCss.html">
            
                <a href="css/publicCss.html">
            
                    
                    公共css定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="css/icon.html">
            
                <a href="css/icon.html">
            
                    
                    图标定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.3" data-path="css/cssAttention.html">
            
                <a href="css/cssAttention.html">
            
                    
                    css注意事项
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="js/jsRules.html">
            
                <a href="js/jsRules.html">
            
                    
                    js规范
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    组件定义
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" >
            
                <span>
            
                    
                    定义好的components
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="../Chapter2/mixin/alert.html">
            
                <a href="../Chapter2/mixin/alert.html">
            
                    
                    alert
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="../Chapter2/mixin/button.html">
            
                <a href="../Chapter2/mixin/button.html">
            
                    
                    button
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.3" data-path="../Chapter2/mixin/form.html">
            
                <a href="../Chapter2/mixin/form.html">
            
                    
                    form
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.4" data-path="../Chapter2/mixin/toast.html">
            
                <a href="../Chapter2/mixin/toast.html">
            
                    
                    toast
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.5" data-path="../Chapter2/mixin/dialog.html">
            
                <a href="../Chapter2/mixin/dialog.html">
            
                    
                    dialog
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.6" data-path="../Chapter2/mixin/navbar.html">
            
                <a href="../Chapter2/mixin/navbar.html">
            
                    
                    navbar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.7" data-path="../Chapter2/mixin/footbar.html">
            
                <a href="../Chapter2/mixin/footbar.html">
            
                    
                    footbar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.8" data-path="../Chapter2/mixin/swiper.html">
            
                <a href="../Chapter2/mixin/swiper.html">
            
                    
                    swiper
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.9" data-path="../Chapter2/mixin/action.html">
            
                <a href="../Chapter2/mixin/action.html">
            
                    
                    action
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.10" data-path="../Chapter2/mixin/popup.html">
            
                <a href="../Chapter2/mixin/popup.html">
            
                    
                    popup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.11" data-path="../Chapter2/mixin/select.html">
            
                <a href="../Chapter2/mixin/select.html">
            
                    
                    select
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.12" data-path="../Chapter2/mixin/calendar.html">
            
                <a href="../Chapter2/mixin/calendar.html">
            
                    
                    calendar
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../Chapter2/else/mixinData.html">
            
                <a href="../Chapter2/else/mixinData.html">
            
                    
                    组件渲染数据定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../Chapter2/else/scriptTmpMixin.html">
            
                <a href="../Chapter2/else/scriptTmpMixin.html">
            
                    
                    template定义组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >目录规范</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x76EE;&#x5F55;&#x89C4;&#x8303;">&#x76EE;&#x5F55;&#x89C4;&#x8303;</h1>
<hr>
<h2 id="&#x9879;&#x76EE;&#x76EE;&#x5F55;">&#x9879;&#x76EE;&#x76EE;&#x5F55;</h2>
<pre><code class="lang-js">src
  &#x251C;&#x2500;assets <span class="hljs-comment">// &#x9759;&#x6001;&#x8D44;&#x6E90;</span>
  &#x2502;  &#x251C;&#x2500;css <span class="hljs-comment">// &#x6837;&#x5F0F;</span>
  &#x2502;  &#x2502;  &#x251C;&#x2500;common 
  &#x2502;  &#x2502;  &#x2502;  &#x251C;&#x2500;base <span class="hljs-comment">// &#x57FA;&#x7840;&#x6837;&#x5F0F;&#x53D8;&#x91CF;</span>
  &#x2502;  &#x2502;  &#x2502;  &#x2514;&#x2500;components  <span class="hljs-comment">// &#x7EC4;&#x4EF6;&#x6837;&#x5F0F;</span>
  &#x2502;  &#x2502;  &#x251C;&#x2500;lib <span class="hljs-comment">// &#x7B2C;&#x4E09;&#x65B9;&#x6837;&#x5F0F;</span>
  &#x2502;  &#x2502;  &#x251C;&#x2500;common.scss <span class="hljs-comment">// &#x516C;&#x5171;&#x6837;&#x5F0F;</span>
  &#x2502;  &#x2502;  &#x251C;&#x2500;<span class="hljs-keyword">var</span>.scss <span class="hljs-comment">// &#x53D8;&#x91CF;</span>
  &#x2502;  &#x2502;  &#x2514;&#x2500;mixin.scss <span class="hljs-comment">//mixin</span>
  &#x2502;  &#x2502;
  &#x2502;  &#x251C;&#x2500;img <span class="hljs-comment">// &#x56FE;&#x7247;&#x8DEF;&#x5F84; </span>
  &#x2502;  &#x2502;  &#x2514;&#x2500;sprite   <span class="hljs-comment">// &#x96EA;&#x78A7;&#x56FE;&#x6587;&#x4EF6;&#x5B58;&#x653E;&#x76EE;&#x5F55; </span>
  &#x2502;  &#x2502;
  &#x2502;  &#x2514;&#x2500;js
  &#x2502;      &#x251C;&#x2500;lib
  &#x2502;      &#x2502;  &#x251C;&#x2500;common <span class="hljs-comment">// &#x7EC4;&#x4EF6;js(&#x5408;&#x5E76;&#x5230;common.min.js)</span>
  &#x2502;      &#x2502;  &#x2514;&#x2500;main <span class="hljs-comment">// &#x9ED8;&#x8BA4;&#x5F15;&#x5165;(main.min.js)</span>
  &#x2502;      &#x2514;&#x2500;<span class="hljs-built_in">module</span> <span class="hljs-comment">// &#x4E0D;&#x6253;&#x5305;common.min.js</span>
  &#x2502;
  &#x251C;&#x2500;components <span class="hljs-comment">// pug&#x7EC4;&#x4EF6;</span>
  &#x2502;  &#x251C;&#x2500;data  <span class="hljs-comment">// &#x7EC4;&#x4EF6;&#x6570;&#x636E;  </span>
  &#x2502;  &#x251C;&#x2500;mixin <span class="hljs-comment">// mixin&#x5B9A;&#x4E49;&#x7EC4;&#x4EF6;</span>
  &#x2502;  &#x251C;&#x2500;layout.pug
  &#x2502;  &#x2514;&#x2500;mixin.pug <span class="hljs-comment">//mixin &#x5F15;&#x5165;&#x6587;&#x4EF6;</span>
  &#x2502;
  &#x2514;&#x2500;views <span class="hljs-comment">// &#x9875;&#x9762;</span>
</code></pre>
<p>&#x65B0;&#x5EFA;&#x6587;&#x4EF6;&#x540D;&#x8BF7;&#x4F9D;&#x636E;&#x82F1;&#x6587;&#x7FFB;&#x8BD1;,&#x8BED;&#x4E49;&#x5316;&#x3002;&#x4F8B;&#x5982;&#xFF1A;<code>&#x5C0F;&#x94FA;</code> =&gt; <code>smallShop</code>, &#x547D;&#x540D;&#x8BF7;&#x5C3D;&#x91CF;&#x89C4;&#x8303;;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../../" class="navigation navigation-prev navigation-unique" aria-label="Previous page: Introduction">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"目录规范","level":"1.2","depth":1,"next":{"title":"书写规范","level":"1.3","depth":1,"ref":"","articles":[{"title":"pug规范","level":"1.3.1","depth":2,"path":"src/Chapter1/pug/pugRules.md","ref":"src/Chapter1/pug/pugRules.md","articles":[{"title":"pug-Mixin定义","level":"1.3.1.1","depth":3,"path":"src/Chapter1/pug/pugMixinRules.md","ref":"src/Chapter1/pug/pugMixinRules.md","articles":[]}]},{"title":"css规范","level":"1.3.2","depth":2,"ref":"","articles":[{"title":"公共css定义","level":"1.3.2.1","depth":3,"path":"src/Chapter1/css/publicCss.md","ref":"src/Chapter1/css/publicCss.md","articles":[]},{"title":"图标定义","level":"1.3.2.2","depth":3,"path":"src/Chapter1/css/icon.md","ref":"src/Chapter1/css/icon.md","articles":[]},{"title":"css注意事项","level":"1.3.2.3","depth":3,"path":"src/Chapter1/css/cssAttention.md","ref":"src/Chapter1/css/cssAttention.md","articles":[]}]},{"title":"js规范","level":"1.3.3","depth":2,"path":"src/Chapter1/js/jsRules.md","ref":"src/Chapter1/js/jsRules.md","articles":[]}]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"src/Chapter1/listRule.md","mtime":"2019-01-24T07:35:34.605Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-25T09:10:09.700Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

